package com.eduction.service.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.bean.ExpertGroupMapBean;
import com.eduction.modules.system.dao.ObservationRepository;
import com.eduction.modules.system.entity.Expert;
import com.eduction.service.ObservationService;

@Service
public class ObservationServiceImpl implements ObservationService{

	@Autowired
	private ObservationRepository observationRepository;
	
	@Override
	public Expert queryExpertByAccount(String account) throws SQLException {
		Expert e = observationRepository.queryExpertByAccount(account);
		return e;
	}

	@Override
	public ExpertGroupMapBean queryExpertGroupMap(String expertId) throws SQLException {
		ExpertGroupMapBean eg = observationRepository.queryExpertGroupMap(expertId);
		return eg;
	}

	@Override
	public Expert queryExpertInfo(String pid) {
		Expert e = observationRepository.queryExpertInfo(pid);
		return e;
	}

	@Override
	public void saveExpertInfo(Expert e) {
		observationRepository.saveExpertInfo(e);
		
	}

}
